﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xz_Qjwc.aspx.cs" Inherits="demo.Page.XZ.xz_Qjwc" %>

<%@ Register Src="../../Controls/AssessmentExt.ascx" TagName="AssessmentExt" TagPrefix="uc1" %>
<%@ Register Src="../../Controls/Attachment.ascx" TagName="Attachment" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>
        <%=TaskAPI.Process %></title>
        <%=LinkCss %>
</head>
<body>
    <form id="form1" runat="server">
    <%=Prefix %>

    <fieldset>
        <legend>基本信息</legend>
        <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>单号：</td>
            <td colspan="5"><anthem:Label ID="ApplicationNo" runat="server"></anthem:Label></td>
        </tr>
        <tr>
            <td>填表日期：</td>
            <td colspan="5"><anthem:Label ID="Time" runat="server"></anthem:Label></td>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><anthem:Label runat="server" ID ="UserFullName"></anthem:Label></td>
            <td></td>
            <td align="right">部门：</td>
               <td colspan="2"><anthem:Label runat="server" ID ="Department" Visible="false"></anthem:Label>
            <anthem:Label ID="DepEName" runat="server"></anthem:Label>
            </td>
        </tr>
        <tr>
            <td style="width:110px">电话：</td>
            <td style="width:150px"><anthem:Label runat="server" ID ="Tel"></anthem:Label></td>
            <td style="width:110px"></td>
            <td style="width:150px"></td>
            <td style="width:110px"></td>
            <td></td>
        </tr>
        <tr>
            <td>事项主题：<anthem:Image runat="server" ID="R_Subject" ImageUrl="~/Resource/Images/Icon_Required.gif" Width="14" Height="13" AutoUpdateAfterCallBack="true" /></td>
            <td colspan="5"><anthem:TextBox runat="server" ID="Subject" Width="400" /></td>
        </tr>                 
    </table>
    </fieldset>


    <fieldset>
        <legend>请假明细<anthem:Image runat="server" ID="Image1" ImageUrl="~/Resource/Images/Icon_Required.gif"
                        Width="14" Height="13" AutoUpdateAfterCallBack="true" /></legend>
        <anthem:Panel ID="pl_cgjh" runat="server" AutoUpdateAfterCallBack="true">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                <td style="text-align: left; width: 110px">类别：</td>
                <td align="left" style="text-align: left; width: 110px">
                    <anthem:DropDownList ID="Category" Width="110" runat="server" AutoUpdateAfterCallBack="true" AutoCallBack="true" EnableCallBack="true" onselectedindexchanged="Category_SelectedIndexChanged">
                        <asp:ListItem>请假单</asp:ListItem>
                        <asp:ListItem>外出请示单</asp:ListItem>
                    </anthem:DropDownList>
                </td>
                <td></td>
                </tr>
                <tr>
                    <td colspan="3">
                        <anthem:Repeater ID="Details" runat="server" AutoUpdateAfterCallBack="true" OnItemDataBound="Details_ItemDataBound">
                            <HeaderTemplate>
                                <table width="100%" cellpadding="0" cellspacing="0" class="divTable">
                                    <thead class="Title">
                                        <tr style="background: url(../../Resource/Images/Icon_TableTitle.gif) repeat;">
                                            <td align="center" style="width: 15px;">
                                            </td>
                                            <td align="center" style="width: 100px;<%=isCssShow %>">
                                                请假类型
                                            </td>
                                            <td align="center" style="width: 90px;">
                                                开始时间
                                            </td>
                                            <td align="center" style="width: 70px;">
                                            </td>
                                            <td align="center" style="width: 90px">
                                                结束时间
                                            </td>
                                            <td align="center" style="width: 70px">
                                            </td>
                                            <td align="center" style="width: 80px">
                                                合计时间
                                            </td>
                                            <td align="center" style="width: 120px">
                                                备注
                                            </td>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="Item">
                                    <td align="center">
                                        <anthem:CheckBox ID="Cb_XZ" runat="server" alt='<%# Eval("No")%>' AutoUpdateAfterCallBack="true" />
                                    </td>
                                    <td  style="<%=isCssShow %>">
                                        <anthem:DropDownList ID="Type" runat="server" Width="80px" Style="border: 1px solid #ccc"
                                            AutoUpdateAfterCallBack="true">
                                            <asp:ListItem></asp:ListItem>
                                            <asp:ListItem>事假</asp:ListItem>
                                            <asp:ListItem>病假</asp:ListItem>
                                            <asp:ListItem>婚假</asp:ListItem>
                                            <asp:ListItem>产假</asp:ListItem>
                                            <asp:ListItem>陪护假</asp:ListItem>
                                            <asp:ListItem>丧假</asp:ListItem>
                                        </anthem:DropDownList>
                                    </td>
                                    <td>
                                        <anthem:CalendarExt ID="StartDate" runat="server" Text='<%# Eval("StartDate")%>' AutoCallBack="true" OnTextChanged="Days_TextChanged"
                                            Width="100px" Style="border: 1px solid #ccc" AutoUpdateAfterCallBack="true"></anthem:CalendarExt>
                                    </td>
                                    <td>
                                        <anthem:DropDownList ID="StartTime" runat="server" Width="60px" Style="border: 1px solid #ccc" AutoCallBack="true" OnTextChanged="Days_TextChanged"
                                            AutoUpdateAfterCallBack="true">
                                            <asp:ListItem Value="1.5">上午</asp:ListItem>
                                            <asp:ListItem Value="1">下午</asp:ListItem>
                                        </anthem:DropDownList>
                                    </td>
                                    <td>
                                        <anthem:CalendarExt ID="EndDate" runat="server" Text='<%# Eval("EndDate")%>' Width="100px" AutoCallBack="true" OnTextChanged="Days_TextChanged"
                                            Style="border: 1px solid #ccc" AutoUpdateAfterCallBack="true"></anthem:CalendarExt>
                                    </td>
                                    <td>
                                        <anthem:DropDownList ID="EndTime" runat="server" Width="60px" Style="border: 1px solid #ccc" AutoCallBack="true" OnTextChanged="Days_TextChanged"
                                            AutoUpdateAfterCallBack="true">
                                            <asp:ListItem Value="-1">上午</asp:ListItem>
                                            <asp:ListItem Value="-0.5">下午</asp:ListItem>
                                        </anthem:DropDownList>
                                    </td>
                                    <td>
                                        <anthem:TextBox ID="Days" runat="server" Width="30px" Text='<%# Eval("Days")%>' Style="border: 1px solid #ccc"
                                            AutoUpdateAfterCallBack="true" AutoCallBack="true"></anthem:TextBox>天
                                    </td>
                                    <td>
                                        <anthem:TextBox ID="ReMark" runat="server" Width="100px" Text='' Style="border: 1px solid #ccc"
                                            AutoUpdateAfterCallBack="true"></anthem:TextBox>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                
                                </table>
                            </FooterTemplate>
                        </anthem:Repeater>
                    </td>
                </tr>
                <tr>
                   <td colspan="3">
                        总共天数
                        <anthem:TextBox ID="Days" runat="server" Width="30px" Text='' 
                            Style="border: 1px solid #ccc" AutoUpdateAfterCallBack="true"></anthem:TextBox>天
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <anthem:Button ID="detailsAdd" runat="server" AutoUpdateAfterCallBack="true" Text="添加行"
                            EnableCallBack="true" OnClick="AddDelete_Click" Style="background: url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px;
                            border: 1px solid #FCC245; padding-top: 2px; cursor: pointer; height: 22px; width: 60px;
                            margin-right: 4px; margin-top: 4px; margin-bottom: 4px;" />&nbsp;&nbsp;
                        <anthem:Button ID="detailsDel" runat="server" AutoUpdateAfterCallBack="true" Text="删除行"
                            EnableCallBack="true" OnClick="AddDelete_Click" Style="background: url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px;
                            border: 1px solid #FCC245; padding-top: 2px; cursor: pointer; height: 22px; width: 60px;
                            margin-right: 4px; margin-top: 4px; margin-bottom: 4px;" />
                    </td>
                </tr>
            </table>
        </anthem:Panel>

        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="text-align: left; width: 120px">
                    事由：<anthem:Image runat="server" ID="R_Reason" ImageUrl="~/Resource/Images/Icon_Required.gif"
                        Width="14" Height="13" AutoUpdateAfterCallBack="true" />
                </td>
                <td colspan="5">
                    <anthem:TextBox runat="server" ID="Reason" TextMode="MultiLine" Height="60px"></anthem:TextBox>
                </td>
            </tr>
            <tr>
            <td valign="top">
                附件上传:
            </td>
            <td colspan="5">
                <div style="width: 500px;">
                    <uc2:Attachment ID="Attachment1" runat="server" />
                </div>
            </td>
        </tr>
        </table>
    </fieldset>


    <uc1:AssessmentExt ID="AssExt" runat="server" OnSaveAsDraft="SaveAsDraft_Click" OnSend="Send_Click"
        OnAborted="Aborted_Click" />
    <%=Postfix%>
    </form>
</body>
</html>
